import request from '@/utils/request'

// 查询专家管理列表
export function listProfessor(query) {
  return request({
    url: '/system/professor/list',
    method: 'get',
    params: query
  })
}

// 查询专家管理详细
export function getProfessor(professorId) {
  return request({
    url: '/system/professor/' + professorId,
    method: 'get'
  })
}

// 新增专家管理
export function addProfessor(data) {
  return request({
    url: '/system/professor',
    method: 'post',
    data: data
  })
}

// 修改专家管理
export function updateProfessor(data) {
  return request({
    url: '/system/professor',
    method: 'put',
    data: data
  })
}

// 删除专家管理
export function delProfessor(professorId) {
  return request({
    url: '/system/professor/' + professorId,
    method: 'delete'
  })
}

// 导出专家管理
export function exportProfessor(query) {
  return request({
    url: '/system/professor/export',
    method: 'get',
    params: query
  })
}